<?php
/**
 * Created by PhpStorm.
 * User: godjarvis
 * Date: 2020/08/05
 * Time: 13:22
 */

namespace App\Model\Dao;

use App\Model\Entity\UserClient;
use Fresh\Mvc\Model\Dao;

class UserClientDao extends Dao
{
    public function getUserCids($dev_id)
    {
        return $this->expr()
            ->from(UserClient::class)
            ->where('dev_id=?', $dev_id)
            ->query()
            ->lists('cid');
    }
}
